from rest_framework import serializers
from system.models import Tenant


class TenantSerializer(serializers.ModelSerializer):
    class Meta:
        model = Tenant
        fields = '__all__'


class TenantViewSet(viewsets.ModelViewSet):
    queryset = Tenant.objects.filter(deleted=False)
    serializer_class = TenantSerializer